cmake_minimum_required(VERSION 2.8)
project(add_string)

add_compile_options(-std=c++11)
add_compile_options(-pthread)

file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
file(GLOB_RECURSE HEADER_FILES include/*.h)

include_directories(
    include   
    ${CMAKE_CURRENT_LIST_DIR}/../add/include
)

add_library(${PROJECT_NAME}
  ${SOURCE_FILES}
  ${HEADER_FILES}
)


target_link_libraries(${PROJECT_NAME}
   add 
)
# add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
#                    COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/include/* ${CMAKE_CURRENT_BINARY_DIR})
# set(3rd_lib add)
# include(common.cmake)

install(TARGETS ${PROJECT_NAME}
        DESTINATION ${PROJECT_NAME}/lib
        )
install(DIRECTORY include/
        DESTINATION ${PROJECT_NAME}/include)